package com.sghj.SysPermission.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sghj.SysPermission.entity.SysMenu;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xrx
 * @since 2022-02-18
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    Set<SysMenu> getUserMenu(Integer sysUserId);

    List<SysMenu> selectMenuTreeAll();

    List<SysMenu> selectMenuTreeByUserId(Integer sysUserId);

    List<SysMenu> selectMenuTreeAllBackEnd();

    List<SysMenu> selectMenuTreeAllFront();

    List<SysMenu> selectMenuTreeByUserIdFront(Integer memberid);
}
